package com.haima.sage.bigdata.api.frame.condition;

import com.haima.sage.bigdata.api.frame.condition.impl.ConditionItemService;

public class ConditionItem extends Condition<ConditionItemService> {
    private String field;
    private Object value;

    public ConditionItem() {
    }

    public ConditionItem(OperatorType operator, String field, Object value) {
        this.setOperator(operator);
        this.field = field;
        this.value = value;
    }


    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }


    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public ConditionItemService service() {
        return new ConditionItemService(this);
    }
}
